import request from '@/utils/request'

// 查询库存预警列表
export function listInventoryAlert(query) {
  return request({
    url: '/storehouse/inventoryAlert/list',
    method: 'get',
    params: query
  })
}

// 查询库存预警详细
export function getInventoryAlert(id) {
  return request({
    url: '/storehouse/inventoryAlert/' + id,
    method: 'get'
  })
}

// 新增库存预警
export function addInventoryAlert(data) {
  return request({
    url: '/storehouse/inventoryAlert',
    method: 'post',
    data: data
  })
}

// 修改库存预警
export function updateInventoryAlert(data) {
  return request({
    url: '/storehouse/inventoryAlert',
    method: 'put',
    data: data
  })
}

// 删除库存预警
export function delInventoryAlert(id) {
  return request({
    url: '/storehouse/inventoryAlert/' + id,
    method: 'delete'
  })
}
